package com.hbnu.Dao;

import com.hbnu.Pojo.DormBuild;
import com.hbnu.Pojo.User;

import java.util.List;

public interface UserDao {
    User findUserByStuCodeAndPassword(String stuCode, String password);

    List<User> findManager();

    List<DormBuild> findDormBuildsByUserId(Integer userId);

    List<User> findManager(String searchType, String keyword);

    String findManagerStuCodeMax();

    Integer savaManager(User user);

    User findById(Integer id);

    void updateManager(User user, String[] dormId);

    void updateManager(User user);

    Integer findTotalNum(String string);

    List<User> findStudent(String string);

    User findByStuCode(String stuCode);

    void updateStudent(User studentUpdate);

    void saveStudent(User user);

    User findByUserIdAndManager(String string);
}
